# @Author   :   hany
# @Time      :  2021/6/28
from basic.device.Android import Android
from airtest.core.api import *

class weatherPage(Android):

    # 首页天气按钮
    airBtn = "com.cloudbae.lovenanning:id/air_quality_value"

    @classmethod
    def clickAir(self):
        self.poco(self.airBtn).wait(3).click()

    @classmethod
    def ifAirIndex(self):
        # sleep(10)
        indexText =self.poco(text="今天").wait(30)
        if indexText.exists():
            return True
